import 'package:flutter/foundation.dart';

class MyValueNotifier  extends ChangeNotifier implements ValueListenable<bool> {

  MyValueNotifier() {
    if (kFlutterMemoryAllocationsEnabled) {
      ChangeNotifier.maybeDispatchObjectCreation(this);
    }
  }

  @override
  String toString() => '${describeIdentity(this)}($value)';

  @override
  bool get value => true;

  void notify(){
    notifyListeners();
  }
}